<!DOCTYPE html>        

<script src="../../lib/jquery-1.7.1.js"></script>
<script src="../../src/validator/validator.js"></script>

<form action="http://google.com/search" style="margin:100px">

	<label>
		requred text 
		<input name="q" type="text" required="required" />
	</label>

  <a href="#" class="submit">Submit</a>
</form>

<script>
$("form").validator({ position: 'top center'});

$("a.submit").click(function(e) {
  e.preventDefault();
  $("form:first").submit();
});
</script>
